home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 7 / PC World Interactive 7.iso / program / cprog.EXE / CC_1.ZIP / PUTW.C < prev    next >
Text File  |  1988-02-01  |  512b  |  13 lines

  1. /*
  2. ** put a word to the stream
  3. */
  4. #define FILE int
  5. #include "streamio.h"
  6. extern fputc();
  7.  
  8. putw(w, stream) int w;  FILE *stream; {
  9.   if(fputc((w >> 8) & 255, stream) == EOF) return EOF;
  10.   if(fputc(w & 255, stream) == EOF) return EOF;
  11.   return w;
  12.   }
  13.